import React, { Component } from "react";
class Child extends React.PureComponent {
  render() {
    console.log(123);
    return <div>我是子组件</div>;
  }
}
// 使用shouldComponentUpdate组织路由更新页面
export default class home extends Component {
  render() {
    return (
      <div>
        <h1>我是首页</h1>
        <Child />
      </div>
    );
  }
}
